﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;

namespace XamlMvp
{
    public static class UriMapperHelpers
    {
        public static void Add(this UriMapper source, string uri, string mappedUri)
        {
            source.UriMappings.Add(new UriMapping { Uri = new Uri(uri, UriKind.Relative), MappedUri = new Uri(mappedUri, UriKind.Relative) });
        }
    }
}
